package cn.icanci.ladybird.service;

import cn.icanci.ladybird.pojo.entity.TicketDetailsTicketAddressMiddle;

import java.util.List;

/**
 * (TicketDetailsTicketAddressMiddle)表服务接口
 *
 * @author makejava
 * @since 2020-09-29 20:43:51
 */
public interface TicketDetailsTicketAddressMiddleService {

    /**
     * 通过ID查询单条数据
     *
     * @param ticketDetailsTicketAddressMiddleId 主键
     * @return 实例对象
     */
    TicketDetailsTicketAddressMiddle queryById(Long ticketDetailsTicketAddressMiddleId);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<TicketDetailsTicketAddressMiddle> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param ticketDetailsTicketAddressMiddle 实例对象
     * @return 实例对象
     */
    TicketDetailsTicketAddressMiddle insert(TicketDetailsTicketAddressMiddle ticketDetailsTicketAddressMiddle);

    /**
     * 修改数据
     *
     * @param ticketDetailsTicketAddressMiddle 实例对象
     * @return 实例对象
     */
    TicketDetailsTicketAddressMiddle update(TicketDetailsTicketAddressMiddle ticketDetailsTicketAddressMiddle);

    /**
     * 通过主键删除数据
     *
     * @param ticketDetailsTicketAddressMiddleId 主键
     * @return 是否成功
     */
    boolean deleteById(Long ticketDetailsTicketAddressMiddleId);

    /**
     * 根据 票的id查询 中间表（address）对象
     * @param ticketDetailsId 票的id
     * @return 返回地点中间表集合对象
     */
    List<TicketDetailsTicketAddressMiddle> queryByTicketDetailsId(Long ticketDetailsId);
}